package com.wkbb.sports.service;

import com.github.pagehelper.PageInfo;
import com.wkbb.common.base.BaseService;
import com.wkbb.common.dto.ResultDTO;
import com.wkbb.sports.dto.*;
import com.wkbb.sports.model.HlifeTerm;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface TermService extends BaseService<HlifeTerm> {

    PageInfo<TermDto> getTermPageList(Map<String, Object> params, Integer pageNo, Integer pageSize);

    ResultDTO addTerm(TermDto termDto) throws ParseException;

    ResultDTO delTerm(Long orgId, Long termId);

    List<TermDto> getTermType(Long orgId);

    ResultDTO updateTerm(TermDto termDto);

    ResultDTO getTerm(Map<String, Object> params);

    void updateTermStatus();
}
